package ${packagePath}.domain;

<#list table.importPackages as pkg>
import ${pkg};
</#list>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author ${author}
 * @since ${date}
 */
@Data
@TableName("${table.name}")
@ApiModel(value="${domainName}对象", description="${table.comment!}")
public class ${domainName} implements Serializable {

    private static final long serialVersionUID = 1L;

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.tableFieldDTOList as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>
    <#if field.comment!?length gt 0>
    @ApiModelProperty(value = "${field.comment}")
    </#if>
    <#if field.keyFlag>
    <#-- 主键 -->
        <#if field.keyFlag>
    @TableId(value = "${field.propertyName}", type = IdType.AUTO)
        <#elseif idType??>
    @TableId(value = "${field.propertyName}", type = IdType.${idType})
        <#elseif field.convert>
    @TableId("${field.propertyName}")
        </#if>
    <#-- 普通字段 -->
    <#else>
    <#-- -----   存在字段填充设置   ----->
    @TableField("${field.propertyName}")
    </#if>
    private ${field.propertyType.type} ${field.propertyName};

</#list>
<#------------  END 字段循环遍历  ---------->
}
